package pers.xhh.frontapi.entity.to.goods;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author wei-xhh
 * @date 2020-11-26
 */
public class MiGoodsTo {
    @NotBlank(message = "商品名称不能为空！")
    private String goods_name;
    @NotBlank(message = "分类列表不能为空！")
    private String goods_cat;
    private BigDecimal goods_price;
    @NotBlank(message = "数量不能为空！")
    private String goods_number;
    @NotBlank(message = "重量不能为空！")
    private String goods_weight;
    private String goods_introduce;
    private List<Pics> pics;
    private List<GoodsAttrs> attrs;

    public static class Pics {
        private String pic;


        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }
    }

    public static class GoodsAttrs {
        private Integer attr_id;
        private String attr_value;

        public Integer getAttr_id() {
            return attr_id;
        }

        public void setAttr_id(Integer attr_id) {
            this.attr_id = attr_id;
        }

        public String getAttr_value() {
            return attr_value;
        }

        public void setAttr_value(String attr_value) {
            this.attr_value = attr_value;
        }
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public String getGoods_cat() {
        return goods_cat;
    }

    public void setGoods_cat(String goods_cat) {
        this.goods_cat = goods_cat;
    }

    public BigDecimal getGoods_price() {
        return goods_price;
    }

    public void setGoods_price(BigDecimal goods_price) {
        this.goods_price = goods_price;
    }

    public String getGoods_number() {
        return goods_number;
    }

    public void setGoods_number(String goods_number) {
        this.goods_number = goods_number;
    }

    public String getGoods_weight() {
        return goods_weight;
    }

    public void setGoods_weight(String goods_weight) {
        this.goods_weight = goods_weight;
    }

    public String getGoods_introduce() {
        return goods_introduce;
    }

    public void setGoods_introduce(String goods_introduce) {
        this.goods_introduce = goods_introduce;
    }

    public List<Pics> getPics() {
        return pics;
    }

    public void setPics(List<Pics> pics) {
        this.pics = pics;
    }

    public List<GoodsAttrs> getAttrs() {
        return attrs;
    }

    public void setAttrs(List<GoodsAttrs> attrs) {
        this.attrs = attrs;
    }
}
